import { Component } from 'react'
import { View,Text,Image} from '@tarojs/components'
import "taro-ui/dist/style/components/avatar.scss";
import "taro-ui/dist/style/components/search-bar.scss";
import "taro-ui/dist/style/components/icon.scss";
import "taro-ui/dist/style/components/button.scss" // 按需引入
import './center.less';
import Taro　from '@tarojs/taro';
import {BASEURL} from "../../constants/global";

export default class Center extends Component {
  tohealthimf(){
    Taro.navigateTo({url:'healthimf'})
  }
  toeleill(){
    Taro.navigateTo({url:'eleill'})
  }
  tojcost(){
    Taro.navigateTo({url:'jcost'})
  }
    render () {
      return (
        <View className="center">
          <text className="healthtitle">健康数据</text>
          <View className="xcenter">
            <View className="centerimg" onClick={this.tohealthimf}>
            <Image className='center-img' src={`${BASEURL}u1251.svg`}/>
              <Text className='centertitle'>健康档案</Text>
            </View>
            <View className="centerimg" onClick={this.toeleill}>
            <Image className='center-img' src={`${BASEURL}u1252.svg`}/>
              <Text className='centertitle'>电子病历</Text>
            </View>
            <View className="centerimg" onClick={this.tojcost}>
            <Image className='center-img' src={`${BASEURL}u1253.svg`}/>
              <Text className='centertitle'>就趁费用</Text>
            </View>

          </View>

        </View>
      );
    }
  }